﻿using System.Diagnostics;
using System.Windows.Controls;
using System.Windows;

namespace Silverlight3dApp
{
    public partial class MainPage
    {
        //Scene scene;

        public MainPage()
        {
            InitializeComponent();
        }

        private void myDrawingSurface_Draw(object sender, DrawEventArgs e)
        {
            // Render scene
            //scene.Draw();

            // Let's go for another turn!
            //e.InvalidateSurface();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            //// Check if GPU is on
            //if (GraphicsDeviceManager.Current.RenderMode != RenderMode.Hardware)
            //{
            //    MessageBox.Show("Please activate enableGPUAcceleration=true on your Silverlight plugin page.", "Warning", MessageBoxButton.OK);
            //}

            //// Create the scene
            //scene = new Scene(myDrawingSurface);
            //mainGame.Run();
            Debug.WriteLine((int)'0');
        }

        //private void RemoveButton_Click(object sender, RoutedEventArgs e)
        //{
        //    LayoutRoot.Children.Remove(mainGame);
        //}

        //private void RestoreButton_Click(object sender, RoutedEventArgs e)
        //{
        //    LayoutRoot.Children.Add(mainGame);
        //}
    }
}
